<?php
require '../../config.php';
if (mysqli_connect_errno()) {
    printf("Connect failed: %s\n", mysqli_connect_error());
    exit();
}

if ($mysqli->multi_query($_REQUEST['query'])) {
    echo "ok";
}
$mysqli->close();
?>